xen: don't longjmp() after domain_crash() in check_wakeup_from_wait()
authorJuergen Gross <jgross@suse.com>
Mon, 29 Jul 2019 04:36:24 +0000 (06:36 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Jul 2019 12:31:03 +0000 (13:31 +0100)
commit3ef59a85411eb7391876bed6f5c7541126e2de25
tree10bbc949b13d51fbc5da420ab908feb0e7261227
parentead6b9f78355e8d366e0c80c4a73fa7fbd6d26cc
xen: don't longjmp() after domain_crash() in check_wakeup_from_wait()

Continuing on the stack saved by __prepare_to_wait() on the wrong cpu
is rather dangerous.

Instead of doing so just call the scheduler again as it already is
happening in the similar case in __prepare_to_wait() when doing the
setjmp() would be wrong.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/wait.c